# name:Shuo
# time:2022/5/28 10:27

list = [0, 0, 0, 0, 0, 1, 7, 13, 17, 20, 19, 17, 18, 18, 14, 13, 12, 11, 10, 11, 14, 13, 12, 11, 9, 8, 0, 0, 0, 0, 8, 15, 19, 20, 18, 15, 15, 15, 13, 14, 16, 12, 10, 9, 11, 13, 11, 10, 8, 3, 0, 0, 0, 1, 8, 16, 19, 21, 20, 18, 18, 19, 13, 11, 11, 13, 12, 12, 12, 14, 14, 11, 8, 4, 0, 0, 0, 0, 7, 14, 17, 18, 15, 16, 16, 14, 14, 14, 15, 14, 10, 11, 11, 12, 9, 9, 7, 1, 0, 0, 0, 1, 9, 15, 19, 22, 20, 19, 18, 18, 14, 12, 11, 11, 11, 11, 11, 12, 11, 9, 6, 3, 0, 0, 0, 0, 9, 16, 20, 21, 19, 18, 18, 17, 16, 15, 15, 12, 12, 12, 13, 15, 15, 14, 13, 3, 0, 0, 0, 1, 9, 17, 19, 21, 20, 20, 20, 19, 15, 14, 13, 12, 12, 11, 14, 15, 14, 12]
k = 0
list_ = []
result = [[0, 0, 0], [0, 1, 0], [0, 2, 0], [0, 3, 0], [0, 4, 0], [0, 5, 1], [0, 6, 7], [0, 7, 13], [0, 8, 17], [0, 9, 20], [0, 10, 19], [0, 11, 17], [0, 12, 18], [0, 13, 18], [0, 14, 14], [0, 15, 13], [0, 16, 12], [0, 17, 11], [0, 18, 10], [0, 19, 11], [0, 20, 14], [0, 21, 13], [0, 22, 12], [0, 23, 11],
          [1, 0, 9], [1, 1, 8], [1, 2, 0], [1, 3, 0], [1, 4, 0], [1, 5, 0], [1, 6, 8], [1, 7, 15], [1, 8, 19], [1, 9, 20], [1, 10, 18], [1, 11, 15], [1, 12, 15], [1, 13, 15], [1, 14, 13], [1, 15, 14], [1, 16, 16], [1, 17, 12], [1, 18, 10], [1, 19, 9], [1, 20, 11], [1, 21, 13], [1, 22, 11], [1, 23, 10],
          [2, 0, 8], [2, 1, 3], [2, 2, 0], [2, 3, 0], [2, 4, 0], [2, 5, 1], [2, 6, 8], [2, 7, 16], [2, 8, 19], [2, 9, 21], [2, 10, 20], [2, 11, 18], [2, 12, 18], [2, 13, 19], [2, 14, 13], [2, 15, 11], [2, 16, 11], [2, 17, 13], [2, 18, 12], [2, 19, 12], [2, 20, 12], [2, 21, 14], [2, 22, 14], [2, 23, 11],
          [3, 0, 8], [3, 1, 4], [3, 2, 0], [3, 3, 0], [3, 4, 0], [3, 5, 0], [3, 6, 7], [3, 7, 14], [3, 8, 17], [3, 9, 18], [3, 10, 15], [3, 11, 16], [3, 12, 16], [3, 13, 14], [3, 14, 14], [3, 15, 14], [3, 16, 15], [3, 17, 14], [3, 18, 10], [3, 19, 11], [3, 20, 11], [3, 21, 12], [3, 22, 9], [3, 23, 9],
          [4, 0, 7], [4, 1, 1], [4, 2, 0], [4, 3, 0], [4, 4, 0], [4, 5, 1], [4, 6, 9], [4, 7, 15], [4, 8, 19], [4, 9, 22], [4, 10, 20], [4, 11, 19], [4, 12, 18], [4, 13, 18], [4, 14, 14], [4, 15, 12], [4, 16, 11], [4, 17, 11], [4, 18, 11], [4, 19, 11], [4, 20, 11], [4, 21, 12], [4, 22, 11], [4, 23, 9],
          [5, 0, 6], [5, 1, 3], [5, 2, 0], [5, 3, 0], [5, 4, 0], [5, 5, 0], [5, 6, 9], [5, 7, 16], [5, 8, 20], [5, 9, 21], [5, 10, 19], [5, 11, 18], [5, 12, 18], [5, 13, 17], [5, 14, 16], [5, 15, 15], [5, 16, 15], [5, 17, 12], [5, 18, 12], [5, 19, 12], [5, 20, 13], [5, 21, 15], [5, 22, 15], [5, 23, 14],
          [6, 0, 13], [6, 1, 3], [6, 2, 0], [6, 3, 0], [6, 4, 0], [6, 5, 1], [6, 6, 9], [6, 7, 17], [6, 8, 19], [6, 9, 21], [6, 10, 20], [6, 11, 20], [6, 12, 20], [6, 13, 19], [6, 14, 15], [6, 15, 14], [6, 16, 13], [6, 17, 12], [6, 18, 12], [6, 19, 11], [6, 20, 14], [6, 21, 15], [6, 22, 14], [6, 23, 12]]
for i in range(7):
    for j in range(24):
        list_item = []
        list_item.append(i)
        list_item.append(j)
        list_item.append(list[k])
        list_.append(list_item)
        k += 1
print(list_)

